<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<base target="_blank" />
		<style type="text/css">
			/*:hover  鼠标移入时候生效的样式*/
			.a:hover{
				color: green;
			}
			
			/*:active  鼠标按下时候生效的样式*/
			.b:active{
				background-color: gold;
			}
			
		</style>
	</head>
	<body>
		
		<a class="a" href="http://news.baidu.com/">百度1</a>
		<a class="b" href="https://www.hao123.com/">百度2</a>
		
		
	</body>
</html>